package cn.echo.hrm.service.impl;

import cn.echo.hrm.doc.CourseDoc;
import cn.echo.hrm.repository.CourseElasticSearchRepository;
import cn.echo.hrm.service.ICourseElasticSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CourseElasticSearchServiceImpl implements ICourseElasticSearchService {

    @Autowired
    private CourseElasticSearchRepository repository;

    @Override
    public void add(CourseDoc doc) {
        repository.save(doc);
    }
}
